package com.bingo.rbac.mapper;

import com.bingo.rbac.pojo.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDeptMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(SysDept record);

    SysDept selectByPrimaryKey(Integer id);

    List<SysDept> selectAll();

    int updateByPrimaryKey(SysDept record);

    String getLevel(Integer id);

    SysDept selectDeptByDeptName(@Param("parentId") Integer parentId,@Param("deptName") String name);

    List<SysDept> selectDeptVoByLevel(String Level);
}